using System;
using System.ComponentModel;

namespace Topro.Entity.Table
{
    /// <summary>
	/// 设备数据
	/// </summary>
    /// <remarks>2021-08-16</remarks>
	public class DeviceData
	{
	    /// <summary>
		/// 系统编号
		/// </summary>
		[Description("系统编号")]
		public int Id { get; set; }

		/// <summary>
		/// 设备名称
		/// </summary>
		[Description("设备名称")]
		public int DeviceLine { get; set; }

 		/// <summary>
		/// 设备地址
		/// </summary>
		[Description("设备地址")]
		public string PlcAddr { get; set; }

 		/// <summary>
		/// 设备消息索引
		/// </summary>
		[Description("设备消息索引")]
		public int Index { get; set; }

 		/// <summary>
		/// 设备消息
		/// </summary>
		[Description("设备消息")]
		public string Message { get; set; }

 		/// <summary>
		/// 开始时间
		/// </summary>
		[Description("开始时间")]
		public DateTime StartTime { get; set; }

 		/// <summary>
		/// 结束时间
		/// </summary>
		[Description("结束时间")]
		public DateTime? EndTime { get; set; }

 		/// <summary>
		/// 设备状态:error(0),working(1),ready(2),service(3),i
		/// </summary>
		[Description("设备状态:error(0),working(1),ready(2),service(1),idle(4)")]
		public int Status { get; set; }

 		/// <summary>
		/// 创建时间
		/// </summary>
		[Description("创建时间")]
		public DateTime CreatedDate { get; set; }
 	}
}

